#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"
#include <stdlib.h>
#include <math.h>

// Number of times the test runs variable
#define TRIALS 250

int main(){
    int i;
    int value;
    int card;
    enum CARD begCard = curse;
    enum CARD endCard = treasure_map;
    int count = 0;
    PlantSeeds(3);
        SelectStream(2);
        
    for(i = 0; i < TRIALS; i++){
        card = (Random() * (endCard - begCard)) + begCard;
        value = getCost(card);
        if(value >= 0){
            count++;
        }
        else printf("Invalid card %d\n", card);
    }
    printf("Test finished: %d valid cards checked for cost\n", count);
    return(0);
}